package r21310.chap04.练习标准答案;

public class Peigenpizza extends Pizza {
    private int keshu;

    public int getKeshu() {
        return keshu;
    }

    public void setKeshu(int keshu) {
        this.keshu = keshu;
    }

    public Peigenpizza(int keshu) {
        this.keshu = keshu;
    }

    public Peigenpizza(String name, int price, int size, int keshu) {
        super(name, price, size);
        this.keshu = keshu;
    }

    public void keshu(){}
    public String show(){
        System.out.println("名称为：培根披萨\n价格为"+getPrice()+"\n尺寸为"+getSize()+"配料为"+keshu);
        return null;
    }
}
